function getUrlParams(){
	var params = {};
	window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(str,key,value) {
		params[key] = value;
	});

	return params;
};


params = getUrlParams();


PARAMS = window.location.search.split('&')
STR = "THE VALUES OF YOUR URL PARAMS\r";
for (var i = PARAMS.length - 1; i >= 0; i--) {
	STR += PARAMS[i]+"\r";
};
alert(STR);